package com.yunshang.shoppingmall.service.impl;


import com.yunshang.shoppingmall.entity.ProductComment;
import com.yunshang.shoppingmall.mapper.ProductCommentMapper;
import com.yunshang.shoppingmall.service.ProductCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("productCommentService")
public class ProductCommentServiceImpl implements ProductCommentService {
    @Autowired
    ProductCommentMapper productCommentMapper;

    @Override
    public int deleteByPrimaryKey(Integer cId) {
        return productCommentMapper.deleteByPrimaryKey(cId);
    }

    @Override
    public int insert(ProductComment record) {
        return productCommentMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductComment record) {
        return productCommentMapper.insertSelective(record);
    }

    @Override
    public ProductComment selectByPrimaryKey(Integer cId) {
        return productCommentMapper.selectByPrimaryKey(cId);
    }

    @Override
    public int updateByPrimaryKeySelective(ProductComment record) {
        return productCommentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(ProductComment record) {
        return productCommentMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(ProductComment record) {
        return productCommentMapper.updateByPrimaryKey(record);
    }
}
